<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title><%= @section.name -%><% if @document != nil-%> | <%= @document.subject -%><% end -%></title>
<%= stylesheet_link_tag "consilience_document" -%>
<% 
  if @document != nil
    if @document.javascripts.size > 0 
      for javascript in @document.javascripts
        if javascript.url.size > 0
-%>
<%= javascript_include_tag javascript.url %>
<%
        else
-%>
<%= javascript_include_tag "/js/#{javascript.id}" %>
<%
        end
      end
    end 
  end
-%>
</head>
<body id="consilience_body">
<%= yield -%>
</body>
</html>
